package models

// Teacher 教师表
type Teacher struct {
	BaseModel
	Name        string `gorm:"size:50;not null" json:"name"`
	Title       string `gorm:"size:100" json:"title"`
	Experience  string `gorm:"size:50" json:"experience"`
	GuidanceFee string `gorm:"size:50" json:"guidance_fee"`
	Intro       string `gorm:"type:text" json:"intro"`
	Avatar      string `gorm:"size:255" json:"avatar"`
	Sort        int    `gorm:"default:0" json:"sort"`
	Status      int    `gorm:"default:1;comment:状态 1启用 0禁用" json:"status"`
}

func (Teacher) TableName() string {
	return "go_teacher"
}
